<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                template="template.xhtml">

    <ui:define name="body">
		<h:form id="login">
			<h2>Welcome to Seam Tasks.</h2>
			<div>
				<h:outputLabel value="Username" for="username" />
				<h:inputText id="username" value="#{credentials.username}" />
			</div>
			<div>
				<h:outputLabel value="Password" for="password" />
				<h:inputSecret id="password" value="#{credentials.password}" />
			</div>
			<div><h:messages/></div>
			<div><h:commandButton action="#{identity.login}" value="Login" /></div>
		</h:form>
		<div id="rightPanel">Welcome to Seam Tasks application. This application demonstrates integration of Seam and RESTEasy. Please log in to see more. You can use demo/demo for user account or admin/password for admin account.</div>
	</ui:define>
</ui:composition>
